﻿using HMEngine.HMComponents;
using Microsoft.Xna.Framework;

namespace HMEngine.HMEffects {
    public sealed class HMEffectManager : DrawableGameComponent {
        internal HMEffectManager(Game game) : base(game) { }

        public static HMShader ActiveShader { get; private set; }

        public static void AddEffect(string effectLabel, HMEffect newEffect) { HMComponentManager.AddComponent(effectLabel, newEffect); }

        internal static void SetActiveShader(string effectLabel) { ActiveShader = HMComponentManager.GetComponent<HMShader>(effectLabel); }
    }
}